Don't fail the build if c++ isn't found
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Aug 2018 21:45:11 +0000 (21:45 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Aug 2018 02:14:56 +0000 (02:14 +0000)
The intention of this check was to skip the keyword
test if no c++ compiler is found. But the meson
docs say that add_languages() will abort unless we
pass required: false.

testsuite/gtk/meson.build

index 319eb14343905657a3ad0323da0525ce266ca09a..296aca320677310f2889eb4a78f0daa6e7574d77 100644 (file)
@@ -90,7 +90,7 @@ foreach t : tests
 endforeach
 
 # FIXME: if objc autotestkeywords_CPPFLAGS += -DHAVE_OBJC=1 -x objective-c++
-if add_languages('cpp')
+if add_languages('cpp', required: false)
   test_exe = executable('autotestkeywords',
                         'autotestkeywords.cc',
                         c_args : test_cargs + ['-Idummy-headers'],